/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.LSPViolation.Impl;



/**
 *
 * @author Leo
 */
public class SmartAcc extends ChequeAcc {

 private int defaultPeriod;

 public SmartAcc(){
 
 }
public SmartAcc(int balance, int period) {
        super(balance, period);
    }

    @Override
    public boolean closeAccount()
    {
    if(balance>0 && period>defaultPeriod)
    return true;
    else
    return false;
}
public int getDefaultPeriod() {
    return defaultPeriod;
}

public void setDefaultPeriod(int dfltPrd) {
defaultPeriod = dfltPrd;
}
}
    

